package practite.Demo;

import java.util.Arrays;
import java.util.Scanner;

public class demo3 {
    public static void main(String[] args) {
        System.out.println("一共有多少位学生");
        Scanner sc = new Scanner(System.in);
        int student = sc.nextInt();
        double grade[] = new double[student];
        for (int i=0;i<grade.length;i++){
            grade[i] = sc.nextDouble();
        }
        Arrays.sort(grade);
        for (int t=0;t< grade.length;t++){
            System.out.println(grade[t]+" ");

        }
    }
}
